package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysPackageProduct;

/**
 * 套餐商品关联Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
public interface SysPackageProductMapper 
{
    /**
     * 查询套餐商品关联
     * 
     * @param id 套餐商品关联主键
     * @return 套餐商品关联
     */
    public SysPackageProduct selectSysPackageProductById(Long id);

    /**
     * 查询套餐商品关联列表
     * 
     * @param sysPackageProduct 套餐商品关联
     * @return 套餐商品关联集合
     */
    public List<SysPackageProduct> selectSysPackageProductList(SysPackageProduct sysPackageProduct);

    /**
     * 新增套餐商品关联
     * 
     * @param sysPackageProduct 套餐商品关联
     * @return 结果
     */
    public int insertSysPackageProduct(SysPackageProduct sysPackageProduct);

    /**
     * 修改套餐商品关联
     * 
     * @param sysPackageProduct 套餐商品关联
     * @return 结果
     */
    public int updateSysPackageProduct(SysPackageProduct sysPackageProduct);

    /**
     * 删除套餐商品关联
     * 
     * @param id 套餐商品关联主键
     * @return 结果
     */
    public int deleteSysPackageProductById(Long id);

    /**
     * 批量删除套餐商品关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysPackageProductByIds(Long[] ids);
}
